class CreateVehiclesHistories < ActiveRecord::Migration
  def change
    create_table :vehicles_histories do |t|
      t.string :vehicle_no
      t.datetime :send_time
      t.string :destination
      t.datetime :require_arrive_time
      t.references :vehicle

      t.timestamps
    end
    add_index :vehicles_histories, :vehicle_id
  end
end
